523630
@@ -252,7 +252,7 @@
private String getServerInstanceURI(HiveConf hiveConf) throws Exception {
     if ((thriftCLIService == null) || (thriftCLIService.getServerAddress() == null)) {
       throw new Exception("Unable to get the server address; it hasn't been initialized yet.");
     }
-    return thriftCLIService.getServerAddress().getHostAddress() + ":"
+    return thriftCLIService.getServerAddress().getHostName() + ":"
         + thriftCLIService.getPortNumber();
   }
 
